import api from "./api.js";



function commCategory() {
	let lists = [
		{name: '本校',selected: true},
		{name: '同城',selected: false},
		{name: '全国',selected: false},
	];
	let key = uni.getStorageSync('position');
	if (key) {
		lists.forEach((item, index) => {
			if (index == key) {
				item.selected = true;
			} else {
				item.selected = false;
			}
		})
	}
	return lists;
}


module.exports = {
	commCategory
}
